package com.sc.pattern.guardedsuspension;

/**
 * Created  on 2018/1/7.
 *
 * @author sc
 */
public class Client {
    public static void main(String[] args) throws InterruptedException {
        final RequestQueue queue = new RequestQueue();
        new ClientThread(queue,"sc").start();
        ServerThread serverThread = new ServerThread(queue);
        serverThread.start();
        Thread.sleep(10000);
        serverThread.close();
    }
}
